﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using ServerLib;

namespace ChatClient
{
  
    public class MessageEventSink : RemotelyDelegatableObject
    {
        public MessageEventSink() : base()
        {
        
        }

        public override object InitializeLifetimeService()
        {
            return null;
        }

        protected override void InternalSubmissionCallback(object sender, ChatEventArgs e)
        {
            if (Event != null)
            {
                Event(sender, e);
            }
        }

        public event ChatEventHandler Event;
    }
}
